<?php

class ibmarketGlobalMoney
{
	public $registry;
	
	public function __construct()
	{
		$this->registry		=  ipsRegistry::instance();
	}
	
	public function getOutput()
	{
		$this->registry->class_localization->loadLanguageFile( array( 'public_hooks' ), 'ibmarket' );
		
		if(!class_exists('marketFormatter'))
		{
			require_once( IPSLib::getAppDir('ibmarket')."/sources/marketFormatter.php");
		}
		if(!class_exists('numbers'))
		{
			require_once( IPSLib::getAppDir('ibmarket')."/sources/numbers.php");
		}
		
		return $this->registry->output->getTemplate( 'ibmarket' )->hookGlobalMoney();
	}
}